package api

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"strconv"
	"video/internal/model/servce"
)

func UserList(c *gin.Context) {
	id, _ := strconv.Atoi(c.Query("id"))
	show, err := servce.UserShow(id)
	if err != nil {
		c.JSON(http.StatusInternalServerError, gin.H{"message": "展示失败"})
		return
	}
	c.JSON(http.StatusOK, gin.H{"message": "展示成功", "data": show})
}
